<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@page import="com.cnhis.cloudhealth.commons.utils.PropDynamicCfg"%>
<%
    String hostUrI = "http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/cloud";
    request.setAttribute("hostUrI",hostUrI);
    String host = "http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
    request.setAttribute("host",host);
    String centerHostUrl = PropDynamicCfg.get("centerurl"); //控制中心主站地址
    String zhihui = PropDynamicCfg.get("zhybUrl"); //智慧医保地址
    String myUrl = "http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/comment";
    request.setAttribute("myUrl",myUrl);

    String emrwebHostUrl = PropDynamicCfg.get("emrUrl");	//电子病历主站地址
    String ratewebHostUrl = PropDynamicCfg.get("rateUrl");	//费用结账系统应用地址
//     String ratewebHostUrl = "http://192.168.3.163:8380/rateweb";
    String pmswebHostUrl = PropDynamicCfg.get("printUrl");	//打印系统主站系统地址
    String mrswebHostUrl = PropDynamicCfg.get("mrsUrl");	//病案系统地址
    String reportUrl = PropDynamicCfg.get("reportUrl");	//报表系统地址
    String memberUrl = PropDynamicCfg.get("memberUrl");	//会员系统地址
    String mqUrl = PropDynamicCfg.get("mqUrl");	//消息系统地址
    String osworksUrl = PropDynamicCfg.get("ssgzzUrl");	//手术系统地址

//     	"http://192.168.1.156:8087/patientweb"
    String patientHostUrl = PropDynamicCfg.get("patientUrl");	//病人管理系统地址
// 	String patientHostUrl = "http://192.168.1.156:8087/patientweb";
    request.getSession().setAttribute("centerHostUrl",centerHostUrl);
    request.getSession().setAttribute("emrwebHostUrl",emrwebHostUrl);
    request.getSession().setAttribute("ratewebHostUrl",ratewebHostUrl);

    request.getSession().setAttribute("pmswebHostUrl",pmswebHostUrl);
    request.getSession().setAttribute("mrswebHostUrl",mrswebHostUrl);
    request.getSession().setAttribute("reportUrl",reportUrl);
    request.getSession().setAttribute("memberUrl",memberUrl);
    request.getSession().setAttribute("mqUrl",mqUrl);
    request.getSession().setAttribute("osworksUrl",osworksUrl);
    request.getSession().setAttribute("patientHostUrl",patientHostUrl);
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE HTML>
<script type="text/javascript" charset="utf-8">
    var patientHostUrl='${patientHostUrl}'||'http://192.168.1.156:8087/patientweb';
    var patientUrl=patientHostUrl+"/cloud";
    //    var mqUrl = 'http://192.168.1.98:8085/onehismq';
    var mqUrl = '${mqUrl}';
    var memberHostUrl='${memberUrl}';
    var memberUrl=memberHostUrl+"/cloud";
    var centerHostUrl = '${centerHostUrl}';
    var centerUrl = centerHostUrl+"/cloud";
    var emrwebHostUrl = '${emrwebHostUrl}';
    //    var emrwebHostUrl = 'http://192.168.1.160:8080/emrweb';
    var emrwebUrl = emrwebHostUrl+"/cloud";
    var ratewebHostUrl = '${ratewebHostUrl}';
    /*   var ratewebHostUrl = 'http://192.168.1.156:8089/rateweb'; */
    var pmswebHostUrl = '${pmswebHostUrl}';
    var pmswebUrl = pmswebHostUrl+"/cloud";
    var mrswebHostUrl = '${mrswebHostUrl}';
    var mrswebUrl = mrswebHostUrl+"/cloud";
    var reportUrl ='${reportUrl}';
    var zhihui = '${zhihui}'||'http://192.168.1.230:82/mhis-fwa-platform/public';
    var auth_token = 'gRmGkKS2nJqrxSa4XY8QF7PVuH1xmSZS2CDaFUwgjA9rG0Agl-FNexJbTL3TGZcSMs7mz-galUo5W3KuKnohTA';
    var remoteUrl =  emrwebUrl;
    var printUrl = pmswebUrl;
    var hostUrl = '${hostUrI}';
    var myUrl = '${myUrl}';
    var host =  '${host}';
    var osworksUrl = '${osworksUrl}'

    //费用
    var jizhangUrl = ratewebHostUrl+"/jsp/horate/hospital_accounting_management_include.jsp";//记账
    var xiaozhangUrl = ratewebHostUrl+"/jsp/horate/hospital_accounting_management_include2.jsp";//销账

    //电子病历
    var remoteUrl1=emrwebHostUrl;//电子病例

    //控制中心
    var sancetuUrl = centerUrl+"/vcf1/getVcf1Image";

    //打印
    var printUrl1 = pmswebHostUrl+"/applet/";//直接打印

    //医生
    var hosdoctorUrl = "<%=PropDynamicCfg.get("doctorUrl")%>/cloud";
    //报表
    var baobiaoUrl = reportUrl+"/jsp/reportshow/reportStatistics.jsp?"; //报表加载路径


</script>




















